import PropTypes from 'prop-types'
import React from 'react'
import Button from '@material-ui/core/Button';
import i18n from '../../lib/i18n'
import IconButton from '@material-ui/core/IconButton';
import Tooltip from '@material-ui/core/Tooltip';
const TrashButton = ({ onClick }) => (
  <Tooltip title={i18n.__('Trash')}>
  <IconButton variant="outlined" className='control-trashButton' onClick={e => onClick(e)}>
    <img src='../resources/icon/icon-trash.svg' />
  </IconButton>
  </Tooltip>
)

TrashButton.propTypes = {
  onClick: PropTypes.func.isRequired
}

export default TrashButton;//  CSSModules(TrashButton, styles)
